package br.ufrgs.dbproject.algorithm.epns;

public class NumberingSchemeIDFactory {

	public static final int ID_ORDER_DISPLACEMENT = 50;
	public static final long ID_DEFAULT_SIZE = 100;
	
	private NumberingSchemeIDFactory() {}
	
	public static NumberingSchemeID createEmptyID() {
		return new EmptyNumberingSchemeID();
	}
	
	public static NumberingSchemeID createID(int order) {
		
		NumberingSchemeID id = new NumberingSchemeID(order, ID_DEFAULT_SIZE);
		id.setLastCreatedChild(new NumberingSchemeID(1, 0));
		
		return id;		
	}

	public static NumberingSchemeID createRootID() {
		
		NumberingSchemeID rootID = new NumberingSchemeID(1, ID_DEFAULT_SIZE);
		rootID.setLastCreatedChild(new NumberingSchemeID(1, 0));
		
		return rootID;
	}

	
}
